import os
import sys
import shutil

info = sys.argv

if len(info) == 2:
    url = 'https://gitee.com/zc980112/film'

else:

    url = info[2]

os.system('python del_pyc.py')

if os.path.exists('.idea'):

    os.system(shutil.rmtree('.idea'))

os.system('git add .')

os.system('git commit -m "{}"'.format(info[1]))

os.system('git push {} master'.format(url))


#print(sys.argv)
